package com.asia.action.ods;

import java.io.IOException;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class FunctionSelect extends ActionSupport
{
    public String manager() throws IOException
    {
        String cname = (String)ServletActionContext.getRequest().getSession().getAttribute("cname");
        if(cname==null)
        {
            ServletActionContext.getRequest().getSession().setAttribute("OverTime","您登录超时，请重新登录！");
            DateSearchFun.setJumpctl(false);
            return "logout";
        }
        return SUCCESS;
    }
    public String goback()
    {
        return "goback";
    }
    public String Search()
    {
        return SUCCESS;
    }
    public String Createcatlog()
    {
        return SUCCESS;
    }
    public String Load_data()
    {
        return SUCCESS;
    }
    public String ODSsearch()
    {
        if (DateSearchFun.isJumpctl()) {
            return "existSearchRecord";
        }else {
            return "noSearchRecord";
        }
    }
    public String DWsearch()
    {
        return SUCCESS;
    }
    public String CreateSQL()
    {
        return SUCCESS;
    }
    public String DataIndex()
    {
        return SUCCESS;
    }
    public String UserManage()
    {
        return SUCCESS;
    }
}
